import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import About from '@/components/owlShower/owlShower';
import ImgInfo from  '@/components/owlImgInfo/owlImgInfo';
import Article from '@/components/owlArticle/owlArticle';
import Leave from '@/components/owlLeave/owlLeave';
import OldBox from '@/components/owlBox/owlBox';
import Photo from '@/components/owlPhoto/owlPhoto';
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      children:[{

        path:"/",
        name:"Photo",
        component:Photo

      },{

        path:"/article",
        name:"Article",
        component:Article
      }, {
          path:"/leave",
          name:"Leave",
          component:Leave

        },{
        path:"/oldbox",
        name:"OldBox",
        component:OldBox

      },
   ]
    },{

      path: '/imginfo',
      name: 'ImgInfo',
      component: ImgInfo,

    }

  ]
})
